﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true"
    CodeFile="RPT_DailyEIR.aspx.cs" Inherits="ReportPages_RPT_DailyEIR" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../Content/js/month-calendar.js"></script>
    <script type="text/javascript">
        var calendar;

        function pageLoad() {
            calendar = $find("calendar2");

            modifyCalDelegates(calendar);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="page-title" align="center">
                <asp:Label ID="PageTitle" runat="server" Text="ตัวอย่างหน้าเรียกรายงาน"></asp:Label>
            </div>
            <asp:Label ID="lblReportCriteria" runat="server" Text="เงื่อนไขการเรียกรายงาน"></asp:Label>
            <br />
            <br />
            <div class="report-criteria-box" align="center">
                <table style="width: 80%;">
                    <tr>
                        <td width="40%" align="left">
                            <asp:Label ID="lblDate" runat="server" Text="วันที่ของข้อมูลที่นำมาจัดทำรายงาน"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtDate" runat="server" Width="150px" Enabled="false" BackColor="White"
                                ForeColor="Black"></asp:TextBox>
                            <asp:ImageButton ID="btnCalendarDate" runat="server" ImageUrl="~/Content/img/calendar.png"
                                CssClass="calendar" />
                            <asp:CalendarExtender ID="calendar1" runat="server" TargetControlID="txtDate" PopupButtonID="btnCalendarDate"
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                        </td>
                    </tr>
                    <tr>
                        <td width="20%" align="left">
                            <asp:Label ID="lblGLAccountID" runat="server" Text="เลขบัญชีแยกประเภท"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtGLAccountID" runat="server" Width="150px" Enabled="true" BackColor="White"
                                ForeColor="Black"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="20%" align="left">
                            <asp:Label ID="lblCostCenterCode" runat="server" Text="รหัสศูนย์ต้นทุน"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtCostCenterCode" runat="server" Width="150px" Enabled="true" BackColor="White"
                                ForeColor="Black"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                <asp:Button ID="btnPreview" runat="server" Text="เรียกดูรายงาน" CssClass="btn0" OnClick="btnPreview_Click" />
                <br />
                <br />
                <hr style="width: 100%;" />
                <br />
            </div>
            <div width="100%">
                <iframe id="frameReport" runat="server" width="100%" frameborder="0" scrolling="yes"
                    allowtransparency="true" style="border-color: transparent; z-index: 9999;"></iframe>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
